<div id="articles">
<ul>
<?php $i = 0; foreach ($articles as $article): ?>
	<? if($i == 1) { ?>
	<li><? //echo $google -> get_adsense(); ?></li>
	<?$i++; } else { $i++; } ?>
	<li>
	<h2 class="title">
		<? echo $html -> link($article['Article']['title'],'/articles/'.$date -> niceShort($article['Article']['created'],'Y/m/d').'/'.$article['Article']['seo_link']); ?>
	</h2>
	
	<? if($article["Article"]["show_author"]==1) { ?>
	<p class="article_author">
		<?php __('AUTHOR'); echo ': '.$article['User']['name'].', '; ?>
		<?php __('CREATED'); echo ': '.$date -> timeAgoInWords($article['Article']['created']); ?>
	</p>
	<? } ?>
	
	<?php echo $texy -> show($article['Article']['intro_text'],true); ?>
	
	<? 
	if($article['Article']['show_all']==1){
		echo $texy -> show($article['Article']['text']);	
	}
	?>
	
	<p class="article_information">
	<? if($article["Article"]["show_informations"]==1) { ?>	
		<? __('VISITED'); echo ': '; echo $article['Article']['visited'].', '; ?>
		<? __('ARTICLE_RELATED_COMMENTS'); echo ': '; echo $html -> link(count($article['Comment']),'/articles/'.$date -> niceShort($article['Article']['created'],'Y/m/d').'/'.$article['Article']['seo_link'].'/#comments').', '; ?>
		<? __('CATEGORY'); echo ': '; echo $html -> link($article['Category']['name'],'/categories/view/'.$article['Category']['seo_link']); ?>, 
		<? __('RATING_TITLE'); echo ': '.ife($rating->amount($article['Rating'])>0,$rating->getRating($article['Rating']).'%','-'); ?>
	<? } ?>
	</p>
	</li>
<?php endforeach; ?>
<? if(empty($articles)){ ?><li style="margin: 1em;"> <?__('ARTICLES_EMPTY')?></li><?}?>
</ul>
<? echo $pagination -> create(null,'articles'); ?>
</div>